import java.util.Random;

public class ArrayGenerator {

	public static int[] getArray(int maxSize) {
		int amount = maxSize;
		int[] randomArray = new int[amount];
		for (int index = 0; index < amount; index++) {
			randomArray[index] = new Random().nextInt(maxSize + 1);
		}
		return randomArray;
	}
}
